package 设计模式.工厂模式.simplefatory;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/18 1:25
 */
public class Red implements ProjectFactory{
    @Override
    public Project getname() {
        return new RedOpen();
    }
}
class RedOpen implements Project{

    @Override
    public void name() {
        System.out.println("hong色笔");
    }
}